package com.wyh.day06.exercise;

/**
 * @author 王艺豪
 * @version 1.0
 */
public class Exercise02 {
    public static void main(String[] args) {
        Bird bird = new Bird("小鸟", 3, "草食动物", "白色");
        bird.eat();
        bird.sleep();
        bird.fly();
        Fish fish = new Fish("小鱼", 4, "杂食动物", 12);
        fish.eat();
        fish.sleep();
        fish.swim();
    }
}
